{include file="layout/header" title="购物币明细" /}
	<div class="view-body">
    {include file="layout/menu" /}
		<div class="view-product">
			<div class="company_identify">
				<div class="manage-head">
					<h6 class="padding-left manage-head-con">购物币明细</h6>
				</div>

				<form class="layui-form" action="{:url('admin/Currency/shopping')}" method="post" name="form">
					<div class="layui-form-item">
					    <label class="layui-form-label">用户名</label>
						<div class="layui-input-inline">
					      	<input type="text" name="username" class="layui-input">
					    </div>
						<div class="layui-input-inline">
					      	<button class="layui-btn layui-btn-primary">筛选</button>
					    </div>
					</div>
				</form>
				
				<div class="offcial-table tr-border table-margin clearfix">
					<div class="tr-th clearfix">
						<div class="th w5">选择</div>
						<div class="th w5">ID</div>
						<div class="th w20">用户名</div>
            			<div class="th w30">原因</div>
						<div class="th w10">金额</div>
						<div class="th w10">类型</div>
						<div class="th w10">时间</div>
						<div class="th w10">操作</div>
					</div>
						{volist name="records" id="v"}
						<div class="tr clearfix border-bottom-none">
							<div class="th w5">
								<input type="checkbox" name="ids" value="{$v.id}">
							</div>
							<div class="td w5">{$v.user_id}</div>
							<div class="td w20">{$v.username}</div>
							<div class="td w30" style="white-space: initial;line-height: 25px;">{$v.message}</div>
							<div class="td w10">{$v.money}</div>
							<div class="td w10">{:get_currency_type($v['type'])}</div>
							<div class="td w10">{:date('Y-m-d H:i',$v['time'])}</div>
							<div class="td w10">
								<a href="{:url('admin/Currency/del',['id'=>$v['id']])}" msg="确定删除？" class="layui-btn layui-btn-mini layui-btn-danger layui_confirm">删除</a>
							</div>
						</div>
						{/volist}
				</div>

				<div class="fl margin-top padding-big-left">
					<button class="layui-btn layui-btn-primary layui-btn-small select_all" style="margin-bottom: 8px;">全选</button>
					<button class="layui-btn layui-btn-primary layui-btn-small delete_all" url="{:url('admin/Currency/del')}" style="margin-bottom: 8px;">批量删除</button>
				</div>

				<div class="fr padding-big-right">
					<div class="page">
						{$records->render()}
					</div>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript">
		var formObj = new Form('form');
	        formObj.init({$post});
	</script>
{include file="layout/footer" /}
